package vrp;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

//import java.util.Date;
import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Vehicle {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private Key partner;

    @Persistent
    private String name;

    @Persistent
    private double capacity;

    @Persistent
    private double operatingCost;

    @Persistent
    private int vehicleStatus;

    public Vehicle(Key partner, String name, double capacity, double operatingCost, int vehicleStatus) {
    	this.partner = partner;
    	this.name = name;
        this.capacity = capacity;
        this.operatingCost = operatingCost;
        this.vehicleStatus = vehicleStatus;
    }

    public Key getKey() {
        return this.key;
    }

    public Key getPartner() {
        return this.partner;
    }

    public String getName() {
        return this.name;
    }

    public double getCapacity() {
        return this.capacity;
    }

    public double getOperatingCost() {
        return this.operatingCost;
    }

    public int getVehicleStatus() {
        return this.vehicleStatus;
    }
    
    public void setKey(Key someKey) {
    	this.key = someKey;
    }
    
    public void setPartner(Key partner) {
    	this.partner = partner;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setCapacity(double capacity) {
        this.capacity= capacity;
    }

    public void setOperatingCost(double operatingCost) {
        this.operatingCost = operatingCost;
    }
    
    public void setVehicleStatus(int vehicleStatus) {
        this.vehicleStatus= vehicleStatus;
    }    
}